package com.design03_behavioral.pattern18_iterator.example02;

/**
 * @ClassName TopicLsit
 * @Description TODO
 * @Author zhangjunhao
 * @DATE 2023/9/9 11:48
 */
public class TopicList implements ListList<Topic> {


    private Topic[] topics;

    public TopicList(Topic[] topics) {
        this.topics = topics;
    }


    @Override
    public IteratorIterator<Topic> Iterator() {
        return new TopicIterator(topics);
    }
}
